import React, { type FC } from 'react';

interface PropsType {
  title?: string,
  bg?: string,
}

const Button: FC<PropsType> = (props) => {
  // eslint-disable-next-line react/button-has-type
  return <button style={{
    width: 80,
    height: 40,
    borderRadius: 8,
    background: props.bg || '#1677ff',
    border: 'none',
    color: '#fff',
    cursor: 'pointer'
  }}>{props.title}</button>
}

export default Button;
